import unittest
from selenium import webdriver
from yvekao.Page import Page
from yvekao.Page2 import Page2
from ddt import ddt,file_data
import logging
@ddt
class Case(unittest.TestCase):
    def setUp(self) -> None:
        self.driver = webdriver.Edge()
        self.driver.maximize_window()


    def tearDown(self) -> None:
        self.driver.quit()

    @file_data(r"D:\pythonProject\pythonProject\Gwllen\yvekao\json.json")
    def test_login_001(self,name,type,zhuang):
        po = Page2(self.driver)
        po.tian_go(name, type, zhuang)

    def test_login_002(self):
        po = Page(self.driver)
        po.shan_go()


if __name__ == '__main__':
    unittest.main()
